import { FormProps, FormSchema } from '/@/components/Table';

import { BasicColumn } from '/@/components/Table/src/types/table';

//表格显示列
export function getAliVideoBasicColumns(): BasicColumn[] {
  // @ts-ignore
  return [
    {
      title: '音/视频标题',
      dataIndex: 'title',
      width: 260,
    },
    {
      title: '音/视频ID',
      dataIndex: 'videoId',
      width: 150,
    },

    {
      title: '音/视频源文件大小',
      dataIndex: 'size',
      width: 150,
    },
    {
      title: '音/视频时长。单位：秒',
      dataIndex: 'duration',
      width: 150,
    },
    {
      title: '音/视频描述',
      dataIndex: 'description',
      width: 150,
    },
    {
      title: '分类名称',
      dataIndex: 'cateName',
      width: 150,
    },
    {
      title: '音/视频标签',
      dataIndex: 'tags',
      width: 150,
    },
    {
      title: '分类ID',
      dataIndex: 'cateId',
      width: 150,
    },
    {
      title: '创建时间',
      dataIndex: 'creationTime',
      width: 150,
    },
  ];
}

export function getAliVideoFormConfig(): Partial<FormProps> {
  return {
    labelWidth: 150,
    baseColProps: { lg: 6, md: 24 },
    schemas: formParamSchema,
  };
}

//查询条件表单
export const formParamSchema: FormSchema[] = [
  /*  {
      field: 'name',
      label: '租户名称',
      component: 'Input',
    },*/
];


